package com.jiangore.controller;

import com.jiangore.entity.Member;
import com.jiangore.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Todo
 * @Author jiangtao
 * @CreateBy 2020-03-09 2:48 PM
 * @UpdateBy jiangtao
 * @Version v1.0
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private IMemberService memberService;

    @RequestMapping("member")
    public String member() {
        Member m = memberService.selectById(100);
        System.out.println(m.toString());
        return "member";
    }

}
